class Human {
    protected String lastName;
    protected String firstName;
    protected String nationality;

    public Human(String lastName, String firstName, String nationality) {
        this.lastName = lastName;
        this.firstName = firstName;
        this.nationality = nationality;
    }

    public void showNameInNativeLanguage() {
        System.out.println("Nationality: " + nationality);
    }
}

class Chinese extends Human {
    public Chinese(String lastName, String firstName, String nationality) {
        super(lastName, firstName, nationality);
    }


    public void showNameInNativeLanguage() {
        System.out.println("国籍：" + nationality);
        System.out.println("姓名：" + lastName + firstName);
    }
}

class American extends Human {
    public American(String lastName, String firstName, String nationality) {
        super(lastName, firstName, nationality);
    }


    public void showNameInNativeLanguage() {
        System.out.println("Nationality: " + nationality);
        System.out.println("Name: " + firstName + " " + lastName);
    }
}

public class test {
    public static void main(String[] args) {
        Chinese chinesePerson = new Chinese("王", "小明", "中国");
        American americanPerson = new American("Smith", "John", "USA");

        System.out.println("Chinese person info:");
        chinesePerson.showNameInNativeLanguage();

        System.out.println("\nAmerican person info:");
        americanPerson.showNameInNativeLanguage();
    }
}
